import { iteratee } from 'lodash'

export interface MapEventConfigType {
  scrollWheelZoom?: boolean
  doubleClickZoom?: boolean
}

export interface SizeType {
  width: number
  height: number
}
export interface PolylineType {
  lineColor: string
  paths: number[][]
  content: Array<string>
  markerIcon?: string
  iconSize?: SizeType
  anchor?: SizeType
  speed?: number
}
export interface PolylineSateType {
  speed: number
  isPlay: boolean
}
export interface LinePathType {
  lng: number
  lat: number
}
export interface MarkerClickTargetType {
  markerId: string
  lng: number
  lat: number
}
export interface MarkerType {
  id?: string | number
  license?: string
  status?: boolean
  post_time?: number | string
  topic?: string
  driver?: string // lyp添加
  orgName?: string
  markerId: string
  lnglat: number[]
  event: boolean
  markerIconUrl?: string
  markerWidth?: number
  markerHeight?: number
  title?: string
  label?: string
  labelOffsetX?: number
  labelOffsetY?: number
  rotation?: number
  position: string
  spd?: number
  onClick?: (e: any) => void
}
export interface OptionsType {
  event: MapEventConfigType
}
export interface DrawOptionType {
  isShowDrawTool: boolean
  isDrawData: boolean
  drawData: Array<LinePathType>
}
export interface DrivingInfoType {
  section: number
  sectionIndex: number
  drivingPaths: Array<any>
  content?: Array<string>
  carMk: any
  currentIndex: number
  isPlay: boolean
  speed: number
  isReadyComplete: boolean
}
